package webServiceClient.academico;

import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.view.View;
import android.widget.Button;

public class FrmAtribuicao extends Activity {
	private Button btnClose, btnDT, btnDP, btnPT, btnAT;

	private void carregaBtn() {
		btnClose = (Button) findViewById(R.FrmAtribuicao.btnClose);
		btnDT = (Button) findViewById(R.FrmAtribuicao.btnSetDT);
		btnDP = (Button) findViewById(R.FrmAtribuicao.btnSetDP);
		btnPT = (Button) findViewById(R.FrmAtribuicao.btnSetPT);
		btnAT = (Button) findViewById(R.FrmAtribuicao.btnSetAT);

		btnAT.setOnClickListener(new View.OnClickListener() {
			@Override
			public void onClick(View v) {
				Intent i = new Intent(FrmAtribuicao.this,
						FrmAlunoTurma.class);
				startActivity(i);
			}
		});
		btnPT.setOnClickListener(new View.OnClickListener() {
			@Override
			public void onClick(View v) {
				Intent i = new Intent(FrmAtribuicao.this,
						FrmProfessorTurma.class);
				startActivity(i);
			}
		});
		btnDP.setOnClickListener(new View.OnClickListener() {
			@Override
			public void onClick(View v) {
				Intent i = new Intent(FrmAtribuicao.this,
						FrmDisciplinaProfessor.class);
				startActivity(i);
			}
		});
		btnDT.setOnClickListener(new View.OnClickListener() {
			@Override
			public void onClick(View v) {
				Intent i = new Intent(FrmAtribuicao.this, FrmADP.class);
				startActivity(i);
			}
		});
		btnClose.setOnClickListener(new View.OnClickListener() {
			@Override
			public void onClick(View v) {
				finish();
			}
		});
	}

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.frm_atribuicao);
		carregaBtn();
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.frm_atribuicao, menu);
		return true;
	}

}
